import request from "@/utils/request";
 // 用户注册
export const register = (data) => {
  return request.post('/user/registered',data)
}
 
// 用户登录
export const login = (data) => {
  return request.post('/user/login', data)
}

// 获取用户信息
export const getUserinfo = () => {
  return request.get('/user')
}

// 获取收藏列表
export const getCollection = () => {
  return request.get('/user/favorites')
}
 
// 获取我的出租
export const getMyrent = () => {
  return request.get('/user/houses')
}